<template>
  <div class="wrapper">
    <header>
      <p>个人中心</p>
    </header>
    <div class="other">
      <div class="head">
        <div class="head-img">
          <img src="../assets/head-img.png">
        </div>
        <div class="head-dsb">
          <p>{{user.userName}}</p>
          <br/>
          <p>手机号 {{user.userId}}</p>
        </div>
      </div>

      <ul class="nav">
        <li>
          <img src="../assets/indent.png">
          <p>优惠券</p>
        </li>
        <li>
          <img src="../assets/clt.png">
          <p>签到</p>
        </li>
        <li>
          <img src="../assets/rcm.png">
          <p>钱包</p>
        </li>
      </ul>


      <section class="mt-1">
        <div class="ps-lt">
          <div class="lt-dsb" @click="change">
            <p>修改密码</p>
            <i class="arr-right"></i>
          </div>
        </div>
        <div class="ps-lt">
          <div class="lt-dsb">
            <p>猜你喜欢</p>
            <i class="arr-right"></i>
          </div>
        </div>
        <div class="ps-lt">
          <div class="lt-dsb">
            <p>附近热门</p>
            <i class="arr-right"></i>
          </div>
        </div>
        <div class="ps-lt">
          <div class="lt-dsb">
            <p>推荐商家</p>
            <i class="arr-right"></i>
          </div>
        </div>
        <div class="ps-lt">
          <div class="lt-dsb cl-bb">
            <p>设置</p>
            <i class="arr-right"></i>
          </div>
        </div>
      </section>
      <div class="jg"></div>


    </div>
    <Footer></Footer>
  </div>

</template>




<script>
import Footer from '../components/Footer.vue';

export default {
  name: 'My',
  data() {
    return {
      user: {}
    }
  },
  created() {
    this.user = this.$getSessionStorage('user');
  },

  components: {
    Footer
  }
}
</script>






<style scoped>
/****************** 总容器 ******************/
.wrapper {
  width: 100%;
  height: 100%;
  background-color: #efeff4;
}

/****************** header部分 ******************/
.wrapper header {
  width: 100%;
  height: 12vw;
  background:linear-gradient(#F37373,#F08080,#EF9292);
  color: #fff;
  font-size: 4.8vw;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper .other {
  width: 100%;
  margin-top: 10vw;
}

.wrapper .other .head {
  position: relative;
  width: 100%;
  height: 20vw;
  padding-top:12vw;
  background:#ffffff;
  background-size: 100% 100%;
}

.wrapper .other .head-img {
  position: absolute;
  top: 0.35rem;
  left: 10vw;
  width: 1.43rem;
  height: 1.43rem;
  padding: 0.04rem;
  border-radius: 1rem;
  background-color: #fff;
}

.wrapper .other .head-img img {
  margin-top: 4.8vw;
  width: 20vw;
  height: 20vw;
}



.wrapper .other .head-dsb {
  position: absolute;
  top: 8vw;
  left: 35vw;
}

.wrapper .other .head-dsb p {
  font-size: 4.5vw;
  color: #666;
}

.wrapper .other .head-dsb .dsb-id {
  margin-top: 0.08rem;
}

.wrapper .other .nav {
  margin-top: 2vw;
  width: 100%;
  height: 25vw;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
}

.wrapper .other .nav li {
  width: 16vw;
  height: 20vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  user-select: none;
  cursor: pointer;
  border-bottom: 1px solid #e5e5e5;
}

.wrapper .other .nav li img {
  width: 10vw;
  height: 10vw;
}

.wrapper .other .nav li p {
  font-size: 4vw;
  color: #666;
}

.wrapper .other .mt-1 {
 padding-top: 3vw;
  width: 100%;
  height: 16vw;
  background-color: #fff;
  margin-bottom: 5vw;
}

.wrapper .other .mt-1 .ps-lt {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;

}

.wrapper .other .mt-1 .ps-lt .lt-dsb {
  position: relative;
  width: 90%;
  height: 6vw;
  line-height: 6vw;
  margin-left: 2vw;
  border-bottom: 1px solid #e5e5e5;

}

.wrapper .other .mt-1 .ps-lt .lt-dsb p {
  margin-left: 2vw;
  font-size: 4vw;
  color: #838383;
}

.wrapper .other .mt-1 .ps-lt .lt-dsb .arr-right {
  display: block;
  position: absolute;
  top: 0.21rem;
  right: 0.25rem;
  width: 0.14rem;
  height: 0.24rem;
  background: url(../assets/arr-right.png) no-repeat;
  background-size: 0.14rem 0.24rem;
}

.wrapper .other .jg {
  margin-bottom: 0.8rem;

}

.wrapper.other.head.head-img{
  width: 200px;
  height: 200px;
  border: 1px solid black;
  border-radius: 100px;
  overflow: hidden;
}
.wrapper.other.head.head-img img{
  width: 100%;
  height: 100%;
}
</style>
